@model viBook.Models.Book

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Book</legend>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">AuthorId</div>
    <div class="display-field">@Model.AuthorId</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">View</div>
    <div class="display-field">@Model.View</div>

    <div class="display-label">CoverUrl</div>
    <div class="display-field">@Model.CoverUrl</div>

    <div class="display-label">UploadedDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.UploadedDate)</div>

    <div class="display-label">UploadedBy</div>
    <div class="display-field">@Model.UploadedBy</div>

    <div class="display-label">Tag</div>
    <div class="display-field">@Model.Tag</div>

    <div class="display-label">CategoryId</div>
    <div class="display-field">@Model.CategoryId</div>

    <div class="display-label">Comments</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Comments).ToString()</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


